﻿@model KRM.Core.vKRMRSCollectionAdmin

@Html.Partial("Partial/_MessageResult")

<input type="hidden" value="@Model.CollectionID" name="CollectionID"/>
<input type="hidden" value="@Model.DisputeID" name="DisputeID"/>
<fieldset>
    <legend>Customer Details</legend>
    <div class="customerdetails-collections">
        <div class="row-fluid">
            <div class="span2">Name</div>
            <div class="span3">
                <input type="text" class="input-block-level" value="@Model.Customer" readonly="readonly" /></div>
            <div class="span2">Postcode</div>
            <div class="span5">
                <input type="text" class="input-block-level" value="@Model.Postcode" readonly="readonly" /></div>
        </div>
        <div class="row-fluid">
            <div class="span2">Address</div>
            <div class="span3">
                <textarea rows="4" class="input-block-level" readonly="readonly">@Model.Address</textarea></div>
            <div class="span2">Telephone</div>
            <div class="span5">
                <textarea rows="4" class="input-block-level" readonly="readonly">@Model.Telephone</textarea></div>
        </div>
        <div class="row-fluid">
            <div class="span5"></div>
            <div class="span2">Email</div>
            <div class="span5">
                <input type="text" class="input-block-level" value="@Model.Email" readonly="readonly" /></div>
        </div>
    </div>
</fieldset>
<div class="row-fluid">
    <div class="border-padding10 span5">
        <div class="row-fluid">
            <div class="span4">Order Reference</div>
            <div class="span8">
                <input type="text" class="input-block-level" value="@Model.Order_Ref" readonly="readonly" /></div>
        </div>
        <div class="row-fluid">
            <div class="span4">Order Item</div>
            <div class="span8">
                <input type="text" class="input-block-level" value="@Model.Order_Item" readonly="readonly" /></div>
        </div>
        <div class="row-fluid">
            <div class="span4">Collection Items</div>
            <div class="span8">
                <input type="text" class="input-block-level" value="@Model.Collection_Items" readonly="readonly" /></div>
        </div>
        <div class="row-fluid">
            <div class="span4">RDM Number</div>
            <div class="span8">
                <input type="text" class="input-block-level" name="RDMNumber" value="@string.Format("RDM{0:0000}", Model.DisputeID)" readonly="readonly" /></div>
        </div>
    </div>
    <div class="border-padding10 span7">
        <div class="row-fluid">
            <div class="span4">Collection Date</div>
            <div class="span8">
                <div id="datetimepicker2" class="input-append">
                    <input data-format="MM/dd/yyyy" type="text" name="ScheduledDate" value="@(Model.ActionID == 1 ? Model.ReplacementDate : Model.PreferredCollectionDate)" required="required">
                    <span class="add-on">
                        <i data-time-icon="icon-time" data-date-icon="icon-calendar" class="icon-calendar"></i>
                    </span>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span4">Courier</div>
            <div class="span8">
                @Html.DropDownList("CarrierID", null, new {@class = "input-block-level"})
            </div>
            <div class="row-fluid">
                <div class="span4">Number of Parcels</div>
                <div class="span8">
                    <input type="text" class="input-block-level" value="@Model.NumberOfParcels" name="NumberOfParcels" id="NumberOfParcels" required="required" /></div>
            </div>
            <div class="row-fluid">
                <div class="span4">Collection Number</div>
                <div class="span8">
                    <input type="text" class="input-block-level" value="@Model.CourierCollectionNumber" name="CourierCollectionNumber" required="required" /></div>
            </div>
        </div>
    </div>
</div>
<div class="border-padding10 text-right">
    <button type="submit" class="btn btn-primary" style="padding: 7px 30px">Save</button>
</div>
